public class CharAtString{
   public static void main(String[] args){
      String text = "one's left brain has noting right.\n" + "one's right brain has nothing left.\n";
	  System.out.println("the text content: ");
	  for(int i=0;i<text.length();i++)
	     System.out.print(text.charAt(i));
	  System.out.println("\n the first left:" + text.indexOf("left"));
	  System.out.println("the last left:" + text.lastIndexOf("left"));
	  char[] charArr = text.toCharArray();
	  System.out.println("\n char Array content:");
	  for(int i=0;i<charArr.length;i++)
	     System.out.print(charArr[i]);
	  
   }
}